class Micropost < ApplicationRecord
  belongs_to :user
  belongs_to :category
  belongs_to :subcategory
  belongs_to :jobnumber
  
  validates :task,  presence: true
  validates :cost,  presence: true
  validates :date,  presence: true
  validates :category_id,  presence: true
  validates :subcategory_id,  presence: true
  validates :jobnumber_id,  presence: true



end
